package singletonmode;

/**
 * 懒汉模式
 */
class LazyMode {
    private static LazyMode INSTANCE;

    private LazyMode() {
    }

    public synchronized static LazyMode getInstance() {
        if (INSTANCE == null)
            INSTANCE = new LazyMode();
        return INSTANCE;
    }
}
